<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  
 </body>
</html>
<script>
	//将字符串"i come from beijing"倒置，即控制台输出"beijing from come i"
	
	var str = "i come from beijing";// i, come, from,
	var arr = str.split(' ');//用空格隔开
	arr.reverse();
	console.log(arr);
	str = arr.join(' ');
	console.log(str);
</script>
